﻿<?php

defined('_JEXEC') or die('Restricted access');
jimport( 'joomla.application.component.view');
// montre les prochaines distributions, tout abo confondu

class amapViewliste_livraison_par_prodldb extends JView         {      
        var $amap;
        function display($tpl = null)   {
                $distrib= $_GET['distrib'];
                $type= $_GET['type'];
                $amap_abonnement= $_GET['amap_abonnement'];
                $mainframe =& JFactory::getApplication();$document =& JFactory::getDocument();$pathway  =& $mainframe->getPathway() ;
                //$mainframe->getUserState( "amap_abonnement", NULL );
                // Adds parameter handling      $params = $mainframe->getParams();
                if ($this->amap->adLoggue)      {
                        if ($this->amap->adExiste)      {
                                echo "Date de la livraison à imprimer : $distrib<br>";
                                echo "format de l'impression : $type<br>";
                                echo "contrat à imprimer :  $amap_abonnement<br><br>";
                                echo "<a class='amap_bouton' href='index.php?option=com_amap&task=exportListeDistrib&distrib=$distrib&type=$type&amap_abonnement=$amap_abonnement'>Imprimer la liste </a>";
                                //~ echo "<a class='amap_bouton' href='index.php?option=com_amap&task=exportListeDistrib&distrib=$distrib&type=$type'>Imprimer la liste </a>";
                        }
                        if ($type == "html")    {


                        }
                }
        }
}

?>


